import _http from '@/utils/http'

export default {
    shopSearch(params, loading, headers) {
        return _http('post', {
            url: '/ums/manage/shop/search',
            apiName: '商铺查询-分页',
        }, params, loading, headers)
    },
    shopStateBatchCode(params, loading, headers) {
        return _http('post', {
            url: '/ums/manage/shop/state/batchCode',
            apiName: '批量修改商铺状态- 邀请码启用禁用',
        }, params, loading, headers)
    },
    shopStateBatchUpdate(params, loading, headers) {
        return _http('post', {
            url: '/ums/manage/shop/state/batchUpdate',
            apiName: '批量修改商铺状态- 拉黑启用',
        }, params, loading, headers)
    },
    shopExportAppoint(params, loading, headers) {
        return _http('post', {
            url: '/ums/manage/shop/export/appoint',
            apiName: '导出-指定',
        }, params, loading, headers)
    },
    shopExportAll(params, loading, headers) {
        return _http('post', {
            url: '/ums/manage/shop/export/all',
            apiName: '导出-所有',
        }, params, loading, headers)
    },
    shopDetail(params, loading, headers) {
        return _http('post', {
            url: '/ums/manage/shop/detail',
            apiName: '商铺详情',
        }, params, loading, headers)
    },
    shopSearchConsumer(params, loading, headers) {
        return _http('post', {
            url: '/ums/manage/shop/searchConsumer',
            apiName: '指定商铺的下级代理商列表-分页',
        }, params, loading, headers)
    },
    shopSearchParents(params, loading, headers) {
        return _http('post', {
            url: '/ums/manage/shop/searchParents',
            apiName: '指定商铺的上级代理商列表',
        }, params, loading, headers)
    },
    incomeShopList(params, loading, headers) {
        return _http('post', {
            url: '/eas/manage/income/shop/income/list',
            apiName: '代理商资产列表',
        }, params, loading, headers)
    },
    incomeShop(params, loading, headers) {
        return _http('post', {
            url: '/eas/manage/income/shop/account/info',
            apiName: '代理商资产',
        }, params, loading, headers)
    },
    manageShop(params, loading, headers) {
        return _http('post', {
            url: '/ums/manage/shop/shop/vipLevel',
            apiName: '修改会员等级',
        }, params, loading, headers)
    },
    shopcodeModify(params, loading, headers) {
        return _http('post', {
            url: '/ums/manage/shop/shopcode/modify',
            apiName: '邀请码修改',
        }, params, loading, headers)
    },
    shopnameModify(params, loading, headers) {
        return _http('post', {
            url: '/ums/manage/shop/shopname/modify',
            apiName: '代理商名称修改',
        }, params, loading, headers)
    },
    shopMove(params, loading, headers) {
        return _http('post', {
            url: '/ums/manage/shop/mv/submit',
            apiName: '店铺迁移',
        }, params, loading, headers)
    },
    shopChooseList(params, loading, headers) {
        return _http('post', {
            url: '/ums/manage/shop/choose/list',
            apiName: '店铺下拉',
        }, params, loading, headers)
    },
    jifenRecordList(params, loading, headers) {
        return _http('post', {
            url: '/eas/manage/asd/jifen/record-list',
            apiName: '积分记录',
        }, params, loading, headers)
    },
    jifenRecordAdd(params, loading, headers) {
        return _http('post', {
            url: '/eas/manage/asd/jifen/add',
            apiName: '新增积分记录',
        }, params, loading, headers)
    },
}
